/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 登录页面样式 */
.login-container {
    width: 400px;
    margin: 100px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.error-message {
    color: #dc3545;
    margin-top: 10px;
    text-align: center;
}

/* 主页面样式 */
header {
    background: #007bff;
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    font-size: 0.9rem;
}

.user-info a {
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
}

nav {
    background: #f8f9fa;
    padding: 1rem;
    margin: 1rem 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
}

nav a:hover {
    background: #007bff;
    color: #fff;
    border-radius: 4px;
}

main {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: #f8f9fa;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-success {
    background: #28a745;
    color: #fff;
}

/* 表单样式 */
.form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.action-bar {
    margin: 20px 0;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.password-change {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.password-change h3 {
    margin-bottom: 20px;
}

/* 按钮组样式 */
.btn + .btn {
    margin-left: 10px;
} 